//package com.lyp.adapters;
//
//import android.support.v7.widget.RecyclerView;
//import android.view.LayoutInflater;
//import android.view.View;
//import android.view.ViewGroup;
//import android.widget.TextView;
//
//import com.lyp.jsonbean.DectionTaskDetailsBean;
//import com.tjl.yangxixi.R;
//
//import java.util.List;
//
///**
// * 作者:ChenXi 时间:2017/6/13 15: 12
// */
////检测全部任务详情(我的任务)
//public class DectionSingeAdapter extends RecyclerView.Adapter<DectionSingeAdapter.MyViewHolder>{
//
//    private List<DectionTaskDetailsBean.DataBean> mList;
//
//    public DectionSingeAdapter(List<DectionTaskDetailsBean.DataBean> list) {
//        mList = list;
//    }
//
//    @Override
//    public DectionSingeAdapter.MyViewHolder onCreateViewHolder(ViewGroup viewGroup, int i) {
//        DectionSingeAdapter.MyViewHolder holder = new DectionSingeAdapter.MyViewHolder(LayoutInflater.from
//                (viewGroup.getContext()).inflate(R.layout.activity_dection_details_cluectivity, viewGroup, false));
//        return holder;
//    }
//
//    @Override
//    public void onBindViewHolder(DectionSingeAdapter.MyViewHolder myViewHolder, int i) {
//        myViewHolder.mNmae.setText(mList.get(i).getUser_name());
//        myViewHolder.mPhone.setText(mList.get(i).getU_phone());
//        myViewHolder.mAddress.setText(mList.get(i).getU_addres());
//        myViewHolder.mSelect.setText(mList.get(i).getPoint_position());
//        myViewHolder.mMold.setText(mList.get(i).getBit_type());
//        if (mList.get(i).getDetection_type().equals("")){
//            myViewHolder.mDectionMold.setText("初检");
//        }
//        else{
//            myViewHolder.mDectionMold.setText("复检");
//        }
//        myViewHolder.mTime.setText(mList.get(i).getPay_time());
//        myViewHolder.mOrderNumber.setText(mList.get(i).getOrder_number());
//
//
//    }
//
//    @Override
//    public int getItemCount() {
//        return mList.size();
//    }
//
//    public class MyViewHolder extends RecyclerView.ViewHolder {
//        TextView mNmae;
//        TextView mPhone;
//        TextView mAddress;
//        TextView mSelect;
//        TextView mMold;
//        TextView mDectionMold;
//        TextView mTime;
//        TextView mOrderNumber;
//        TextView mYuyue;
//        TextView mContent;
//
//        public MyViewHolder(View view) {
//            super(view);
//            mNmae = (TextView) view.findViewById(R.id.tv_dection_name);
//            mPhone = (TextView) view.findViewById(R.id.tv_dection_phone);
//            mAddress = (TextView) view.findViewById(R.id.tv_dection_address);
//            mSelect = (TextView) view.findViewById(R.id.tv_dection_select);
//            mMold = (TextView) view.findViewById(R.id.tv_mold);
//            mDectionMold = (TextView) view.findViewById(R.id.tv_dection_mold);
//            mTime = (TextView) view.findViewById(R.id.tv_dection_time);
//            mOrderNumber = (TextView) view.findViewById(R.id.tv_dection_ordernumber);
//            mYuyue = (TextView) view.findViewById(R.id.tv_dection_yuyue);
//            mContent = (TextView) view.findViewById(R.id.tv_dection_content);
//        }
//    }
//}